package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MpBusinessCardHolderMapper;
import com.ruoyi.system.domain.MpBusinessCardHolder;
import com.ruoyi.system.service.IMpBusinessCardHolderService;

/**
 * 名片夹Service业务层处理
 * 
 * @author mcf
 * @date 2022-11-18
 */
@Service
public class MpBusinessCardHolderServiceImpl implements IMpBusinessCardHolderService 
{
    @Autowired
    private MpBusinessCardHolderMapper mpBusinessCardHolderMapper;

    /**
     * 查询名片夹
     * 
     * @param id 名片夹主键
     * @return 名片夹
     */
    @Override
    public MpBusinessCardHolder selectMpBusinessCardHolderById(String id)
    {
        return mpBusinessCardHolderMapper.selectMpBusinessCardHolderById(id);
    }

    /**
     * 查询名片夹列表
     * 
     * @param mpBusinessCardHolder 名片夹
     * @return 名片夹
     */
    @Override
    public List<MpBusinessCardHolder> selectMpBusinessCardHolderList(MpBusinessCardHolder mpBusinessCardHolder)
    {
        return mpBusinessCardHolderMapper.selectMpBusinessCardHolderList(mpBusinessCardHolder);
    }

    /**
     * 新增名片夹
     * 
     * @param mpBusinessCardHolder 名片夹
     * @return 结果
     */
    @Override
    public int insertMpBusinessCardHolder(MpBusinessCardHolder mpBusinessCardHolder)
    {
        return mpBusinessCardHolderMapper.insertMpBusinessCardHolder(mpBusinessCardHolder);
    }

    /**
     * 修改名片夹
     * 
     * @param mpBusinessCardHolder 名片夹
     * @return 结果
     */
    @Override
    public int updateMpBusinessCardHolder(MpBusinessCardHolder mpBusinessCardHolder)
    {
        return mpBusinessCardHolderMapper.updateMpBusinessCardHolder(mpBusinessCardHolder);
    }

    /**
     * 批量删除名片夹
     * 
     * @param ids 需要删除的名片夹主键
     * @return 结果
     */
    @Override
    public int deleteMpBusinessCardHolderByIds(String[] ids)
    {
        return mpBusinessCardHolderMapper.deleteMpBusinessCardHolderByIds(ids);
    }

    /**
     * 删除名片夹信息
     * 
     * @param id 名片夹主键
     * @return 结果
     */
    @Override
    public int deleteMpBusinessCardHolderById(String id)
    {
        return mpBusinessCardHolderMapper.deleteMpBusinessCardHolderById(id);
    }
}
